﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<elfam.web.Paging.Prototype.SearchResults<elfam.web.Paging.Prototype.ProductListAdminItem>>" %>
<%@ Import Namespace="elfam.web.Paging.Prototype" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>QueryBuilder</title>
</head>
<body>
    <div>
    <table border="1">
        <tr>
            <th><%= Model.Criteria.Header("Товар", "p") %></th>
            <th><%= Model.Criteria.Header("Остаток", "sum")%></th>
            <th><%= Model.Criteria.Header("Дата последнего прихода", "date")%></th>
        </tr>
        <% foreach (ProductListAdminItem item in Model.Results) {%>
        <tr>
            <td><%= item.Product.Name %></td>
            <td><%= item.Quantity %></td>
            <td><%= item.Date %></td>
        </tr>
        <% } %>
    </table>
    <%= Model.Criteria.Pages(Model.PageCount) %>
    </div>
</body>
</html>
